#pragma once
#include <stdio.h>
#include <assert.h>
#include <stdlib.h>

typedef int SLDataType;

typedef struct SeqList
{
	SLDataType* a;
	int size;
	int capacity;
}SeqList;

void SeqListInit(SeqList* ps);
void CheckCapacity(SeqList* ps);
void SeqListDestroy(SeqList* ps);
void SeqListPrint(SeqList* ps);
void SeqListPushBack(SeqList* ps, SLDataType x);
void SeqListPopBack(SeqList* ps);
void SeqListPushFront(SeqList* ps, SLDataType x);
void SeqListPopFront(SeqList* ps);
void SeqListFind(SeqList* ps, SLDataType x);
void SeqListchange(SeqList* ps, int pos, SLDataType x);
void SeqlistInsert(SeqList* ps, int pos, SLDataType x);
void SeqListErase(SeqList* ps, int pos);